<tagLib name="html" />

<include file="Public:header" />
<load href="__PUBLIC__/Js/datePicker/jquery.datePicker.css" />
<load href="__PUBLIC__/Js/datePicker/date.js" />
<load href="__PUBLIC__/Js/datePicker/jquery.datePicker.js" />

<div class="container" id="cpcontainer">
    <div class="itemtitle">
        <h3>{$Think.lang.manage_question}</h3>
        <ul class="tab1">
            <li class="current"><a href="__URL__/searchQuestion"><span>{$Think.lang.search_question}</span></a></li>
            <li><a href="__URL__/questionList"><span>{$Think.lang.all_question}</span></a></li>
        </ul>
    </div>
    <form name="cpform" method="get" action="__URL__/questionList">
    <input type="hidden" name="op" value="save" />
    <table class="tb tb2">
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.category}:</td></tr>
        <tr>
            <td class="vtop rowform">
                <select name="category_id">
                    <option value="all">{$Think.lang.select_category}</option>
                    {$categoryOptions}
                </select>
            </td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.asker}:</td></tr>
        <tr>
            <td class="vtop rowform"><input name="poster_name" value="" type="text" class="txt" /></td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.keyword}:</td></tr>
        <tr>
            <td class="vtop rowform"><input name="title" value="" type="text" class="txt" /></td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.question_status}:</td></tr>
        <tr>
            <td class="vtop rowform">
                <html:select name="status" options="questionStatusOptions" />
            </td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.question_answer_count}:</td></tr>
        <tr>
            <td class="vtop rowform">
                <html:select name="answer_count" options="answerCountOptions" />
            </td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.submit_date}:</td></tr>
        <tr>
            <td class="vtop rowform">
                <select name="create_time_select" style="width:128px;float:left;">
                    <option value="lt">{$Think.lang.before}</option>
                    <option value="gt">{$Think.lang.after}</option>
                </select>
                <input id="date-pick1" name="create_time" value="" type="text" class="txt" style="width:110px;margin-right:0px;"/>
            </td>
            <td class="vtop tips2">{$Think.lang.submit_date_explain}</td>
        </tr>
        <tr class="nobg"><td colspan="15"><div class="fixsel"><input class="btn" type="submit" value="{$Think.lang.submit}" /></div></td></tr>
    </table>
    </form>
</div>

<script type="text/javascript">
$(function(){
    Date.format = 'yyyy-mm-dd';
    var params = {
        clickInput:true,
        startDate:'1996-01-01'
    };
	$('#date-pick1,#date-pick2').datePicker(params);
});
</script>

<include file="Public:footer" />
